package com.sangmo.fts.process.inventory.interfaces;

import com.sangmo.boot.framework.plugin.dataview.def.meta.DataField;
import com.sangmo.boot.framework.plugin.dataview.def.meta.DataView;
import com.sangmo.fts.common.IConstants;
import com.sangmo.fts.process.inventory.model.IfWaybill;

import java.util.Date;
import java.util.List;

@DataView(value = IfWaybill.class)
public class IfWaybillCreation extends TrainingIdRequest {

    private Long contractId;

    private Date shippingTime;

    private String originPlace;

    @DataField(value = IConstants.DATA_TYPE.COLLECTION, required = true)
    private List<IfWaybillItemCreation> waybillItems;

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public Date getShippingTime() {
        return shippingTime;
    }

    public void setShippingTime(Date shippingTime) {
        this.shippingTime = shippingTime;
    }

    public String getOriginPlace() {
        return originPlace;
    }

    public void setOriginPlace(String originPlace) {
        this.originPlace = originPlace;
    }

    public List<IfWaybillItemCreation> getWaybillItems() {
        return waybillItems;
    }

    public void setWaybillItems(List<IfWaybillItemCreation> waybillItems) {
        this.waybillItems = waybillItems;
    }
}
